/*
 * BanBu_addTXLController
 * @description 本文件提供通讯录初始的ViewController
 * @package
 * @author 		yinlinlin
 * @copyright
 * @version 		***
 * @description 本文件提供通讯录初始的ViewController
 */

#import "BanBu_addTXLController.h"
#import "BanBu_addTongxunluController.h"
@interface BanBu_addTXLController ()

@end

@implementation BanBu_addTXLController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = NSLocalizedString(@"add_tongxunlu", nil);
    // Do any additional setup after loading the view.
    self.view.backgroundColor = UIColorWithRGB(242, 243, 230, 1.0);
    UIImageView * bgImgV = [[UIImageView alloc]initWithFrame:CGRectMake(82.5, 43, 155, 236)];
    NSString * imgPath = [[NSBundle mainBundle] pathForResource:@"pre_tongxunlu" ofType:@"png"];
    bgImgV.image = [UIImage imageWithContentsOfFile:imgPath];
    [self.view addSubview:bgImgV];
    [bgImgV release];
    
    UILabel * detailLa = [[UILabel alloc]initWithFrame:CGRectMake(0, __MainScreen_Height - 180, 320, 20)];
    detailLa.textAlignment = kTextAlignmentCenter;
    detailLa.font = [UIFont boldSystemFontOfSize:16.0];
    detailLa.textColor = UIColorWithRGB(90, 90, 82, 1.0);
    detailLa.backgroundColor = [UIColor clearColor];
    [self.view addSubview:detailLa];
    detailLa.text = NSLocalizedString(@"inviteTXljoin", nil);
    [detailLa release];
    UIButton * pushBu = [UIButton buttonWithType:UIButtonTypeCustom];
    [pushBu setFrame:CGRectMake(15, __MainScreen_Height - 137, 290, 46)];
    [pushBu addTarget:self action:@selector(pushToaddTXLfriend) forControlEvents:UIControlEventTouchUpInside];
    [pushBu setTitle:NSLocalizedString(@"add_tongxunlu", nil) forState:UIControlStateNormal];
    pushBu.titleLabel.font = [UIFont boldSystemFontOfSize:16];
    NSString * buPath = [[NSBundle mainBundle] pathForResource:@"pre_txlBu" ofType:@"png"];
    [pushBu setBackgroundImage:[UIImage imageWithContentsOfFile:buPath] forState:UIControlStateNormal];
    [self.view addSubview:pushBu];
    
    
}


- (void)pushToaddTXLfriend
{
    BanBu_addTongxunluController * tongxunlu = [[BanBu_addTongxunluController alloc]init];
    [self.navigationController pushViewController:tongxunlu animated:YES];
    [tongxunlu release];
    tongxunlu = nil;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
